<template>
  <div id="app">
    <div class="title">Echarts 开发案例参考</div>
    <nav class="text-center">
      <router-link to="/">入门案例</router-link> |
      <router-link to="/style">样式变更</router-link> |
      <router-link to="/data">数据集变更</router-link> |
      <router-link to="/event">事件行为1</router-link> |
      <router-link to="/event2">事件行为2</router-link> |
      <router-link to="/bar">基础柱状图</router-link> |
      <router-link to="/bar2">堆叠柱状图</router-link> |
      <router-link to="/bar3">动态排序柱状图</router-link>|
      <router-link to="/line">折线图</router-link>|
      <router-link to="/pie">饼状图</router-link>|
      <router-link to="/scatter">散点图</router-link>|
      <router-link to="/radar">雷达图</router-link> |
      <router-link to="/map">地图</router-link>|
      <router-link to="/calendar">日历</router-link>
    </nav>
    <router-view/>
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  text-align: center;
}
.title {
  font-size: 26px;
}

.text-center {
  text-align: center;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
